#include "hal_api.h"
#include "printf.h"

#define TMPE_WARNING_VALUE  0x1000UL

void temp_warning_int_callback(void)
{
	printf("[SARADC TEMP WARNING]: temp warning int process\r\n");
}

int32_t test_saradc(void)
{
	printf("\r\n[SARADC TEMP WARNING]: TEST START\r\n");
	Hal_Saradc_temp_threshold_cfg(TMPE_WARNING_VALUE);
	Hal_Saradc_register_int_callback(temp_warning_int_callback);
	Hal_Saradc_Enable(true);
	Hal_Cnt_DelayMs(1000);
	Hal_Saradc_Enable(false);
	printf("[SARADC TEMP WARNING]: TEST END\r\n");
	return 0;
}
